package druid;

import com.alibaba.druid.sql.ast.SQLName;
import com.alibaba.druid.sql.ast.statement.SQLExprTableSource;
import com.alibaba.druid.sql.dialect.hive.visitor.HiveSchemaStatVisitor;

public class HiveSchemaStatVisitorRewriter extends HiveSchemaStatVisitor {

    @Override
    public boolean visit(SQLExprTableSource x) {
        SQLName table = (SQLName) x.getExpr();
        String tableName = table.getSimpleName();

        System.out.println("visit==tableName===>" + tableName);

        return true;
    }
}
